window: Sanitize size hint computation
authorBenjamin Otte <otte@redhat.com>
Sat, 14 Dec 2013 00:15:06 +0000 (01:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 14 Dec 2013 00:18:23 +0000 (01:18 +0100)
commit9849b292a9d524de374b501424e9499fe6964c83
tree8bb918648111da43b9bf6fa8b759a715e933dad8
parentd4c8f1028acf683303f3ff5ab5b351a3fa31f6e7
window: Sanitize size hint computation

We don't want the maximum size to be smaller than the minimum size. Not
just because it's wrong but also because when this happens the rest of
GTK gets mighty confused and infloops resizing to min-size and
max-size in turns causing a flickering window. Well, at least if you
run X without a window manager. Or your window manager hasn't finished
starting up.

Private RHEL bug finding this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1035409
gtk/gtkwindow.c